using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

namespace YABlog.DAL
{
    public class MetaDataDb
    {
        public MetaDataDb()
        {
            
        }

        public DataTable GetMetaData()
        {
            return Functions.ExecuteSelectCommand("GetMetaData");
        }

        public bool UpdateMetaData(string sitename, string subtitle)
        {
            SqlParameter p1 = new SqlParameter("@sitename", sitename);
            SqlParameter p2 = new SqlParameter("@subtitle", subtitle);

            return Functions.ExecuteNonQuery("UpdateMetaData", new SqlParameter[] { p1,p2});
        }
    }
}
